﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BukkitSharp.org.bukkit.util
{
    
    class Log_Util
    {

        public static void Log(int level, string message)
        {
            switch (level)
            {
                case 1:
                    Console.ForegroundColor = ConsoleColor.White;
                    Console.WriteLine("INFO: " + message);
                    break;
                case 2:
                    Console.ForegroundColor = ConsoleColor.Red;
                    Console.WriteLine("ERROR: " + message);
                    break;
                case 3:
                    Console.ForegroundColor = ConsoleColor.Yellow;
                    Console.WriteLine("WARNING: " + message);
                    break;
                default:
                    Console.WriteLine("FAILED: Log level is not set!");
                    break;
            }
        }

    }
}
